package com.yida.gwj.vote.domain.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * @author lqq
 * @date 2023-03-14
 */
@ApiModel("投票结果详情请求")
public class GwjVoteResultDetailRequest implements Serializable {
	private static final long serialVersionUID = 1L;

	@ApiModelProperty("投票项ID")
	private Long itemId;

	@ApiModelProperty("投票项名称")
	private String itemName;

	@ApiModelProperty("选项名称")
	private String optionName;

	@ApiModelProperty("选项ID")
	private Long optionId;

	@ApiModelProperty("是否赞同选项")
	@NotBlank(message = "请求参数有误[agreeFlag]为空")
	private String agreeFlag;

	public String getAgreeFlag() {
		return agreeFlag;
	}

	public void setAgreeFlag(String agreeFlag) {
		this.agreeFlag = agreeFlag;
	}

	public void setItemId(Long itemId) {
		this.itemId = itemId;
	}

	public Long getItemId() {
		return itemId;
	}

	public void setItemName(String itemName) {
		this.itemName = itemName;
	}

	public String getItemName() {
		return itemName;
	}

	public void setOptionName(String optionName) {
		this.optionName = optionName;
	}

	public String getOptionName() {
		return optionName;
	}

	public void setOptionId(Long optionId) {
		this.optionId = optionId;
	}

	public Long getOptionId() {
		return optionId;
	}

	@Override
	public String toString() {
		final StringBuffer sb = new StringBuffer("VoteResultDetail{");
		sb.append(", itemId=").append(itemId);
		sb.append(", itemName='").append(itemName).append('\'');
		sb.append(", optionName='").append(optionName).append('\'');
		sb.append(", optionId=").append(optionId);
		sb.append(", agreeFlag=").append(agreeFlag);
		sb.append('}');
		return sb.toString();
	}
}
